package com.xing.order.client;


import com.xing.commonutils.user.CourseWebVoOrder;
import com.xing.order.client.impl.EduClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Component
@FeignClient(value = "service-edu",url = "172.29.12.23:8701",fallback = EduClientImpl.class)
public interface EduClient {

    //远程调用根据课程id获取课程信息
    @PostMapping("eduservice/coursefront/getCourseInfoOrder/{id}")
     CourseWebVoOrder getCourseInfoOrder(@PathVariable("id") String id);
}
